using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DTO;
using BUS;
using Utility;

public partial class Admin_danhmucdetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadData();
    }
    private void LoadData()
    {
        try
        {
            int id = int.Parse(Request.QueryString["id"]);
            tbdanhmuc danhmuc = tbdanhmucBUS.GetByID(id);
            lit_madanhmuc.Text = danhmuc.Madanhmuc.ToString();
            lit_Tendanhmuc.Text = danhmuc.Tendanhmuc;
            
        }
        catch
        {
            Response.Redirect("~/Admin/danhmuclist.aspx");
        }
    }
}
